Skip to content

Comments

Randao support#3353

Draft
bzawisto wants to merge 60 commits intomainfrom
randao-support
Draft

Randao support#3353
bzawisto wants to merge 60 commits intomainfrom
randao-support

Conversation

@bzawisto
Copy link
Contributor

@bzawisto bzawisto commented Dec 12, 2025

This PR introduces randao - which works as follows:

  1. validators include RANDAO_REVEAL(block) = BLS_SIGN(proposer.privkey, block.view) in the randao_reveal field of block they propose
  2. validator include RANDAO_MIX(block) = RANDAO_MIX(block.parent) XOR KECCAK256(RANDAO_REVEAL(block)) in the mixHash field of block they propose
  3. nodes check if BLS_VERIFY(proposer.pubkey, block.view, RANDAO_REVEAL(block)) is true
  4. nodes compute RANDAO_MIX(block) = RANDAO_MIX(block.parent) XOR KECCAK256(RANDAO_REVEAL(block)) and check if included mixHash included in a block is the same

@bzawisto bzawisto marked this pull request as draft December 12, 2025 08:24
@bzawisto bzawisto marked this pull request as ready for review January 8, 2026 10:05
@bzawisto bzawisto marked this pull request as draft February 19, 2026 09:18
@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🐰 Bencher Report

Branchrandao-support
Testbedself-hosted

🚨 1 Alert

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
process-empty/process-emptyLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
13.54 ms
(+33.18%)Baseline: 10.17 ms
11.40 ms
(118.75%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
full-blocks-erc20-transfers/full-blocks-erc20-transfers📈 view plot
🚷 view threshold
622.59 ms
(-6.20%)Baseline: 663.74 ms
796.23 ms
(78.19%)
full-blocks-evm-transfers/full-blocks-evm-transfers📈 view plot
🚷 view threshold
913.56 ms
(-2.95%)Baseline: 941.32 ms
1,170.27 ms
(78.06%)
full-blocks-giant-deploy/full-blocks-giant-deploy📈 view plot
🚷 view threshold
5,020.00 ms
(-3.26%)Baseline: 5,189.10 ms
6,052.12 ms
(82.95%)
full-blocks-scilla-add/full-blocks-scilla-add📈 view plot
🚷 view threshold
1,002.30 ms
(-2.60%)Baseline: 1,029.01 ms
1,189.70 ms
(84.25%)
full-blocks-scilla-load/full-blocks-scilla-load📈 view plot
🚷 view threshold
5,126.50 ms
(+0.04%)Baseline: 5,124.43 ms
6,459.71 ms
(79.36%)
full-blocks-scilla-store/full-blocks-scilla-store📈 view plot
🚷 view threshold
4,070.10 ms
(-0.95%)Baseline: 4,109.21 ms
5,049.18 ms
(80.61%)
full-blocks-zil-transfers/full-blocks-zil-transfers📈 view plot
🚷 view threshold
994.02 ms
(+0.63%)Baseline: 987.83 ms
1,432.92 ms
(69.37%)
process-empty/process-empty📈 view plot
🚷 view threshold
🚨 view alert (🔔)
13.54 ms
(+33.18%)Baseline: 10.17 ms
11.40 ms
(118.75%)

🐰 View full continuous benchmarking report in Bencher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants